#ifndef SERVERRESPONSEPARSER_H
#define SERVERRESPONSEPARSER_H

#include <QObject>
#include "drunkscenemodel.h"
#include "sceneobject.h"

class QIODevice;

class ServerResponseParser : public QObject
{
    Q_OBJECT
public:
    ServerResponseParser(QObject *parent = 0);
signals:
    void logoutFailed();
    void logoutSucceeded();
    void loginFailed();
    void loginSucceeded();
    void playersAvailable(QList<QString>);
    void noChallenges();
    void challengedBy(QString);
    void challengeDelivered(int challengeId,QString player);
    void challengeDeclined();
    void challengeAccepted();
    void mapReady(DrunkSceneModel *);
    void passiveChallengeMapReady();
public slots:
    void parseXML(QIODevice *io);
};

#endif // SERVERRESPONSEPARSER_H
